package com.gao.frame.study.shop.user.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.Data;

@Data
@TableName(value = "customer_login")
public class CustomerLogin {
    /**
     * 用户ID
     */
    @TableId(value = "customer_id", type = IdType.AUTO)
    private Integer customerId;

    /**
     * 用户登陆名
     */
    @TableField(value = "login_name")
    private String loginName;

    /**
     * md5加密的密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 用户状态
     */
    @TableField(value = "user_stats")
    private Byte userStats;

    /**
     * 最后修改时间
     */
    @TableField(value = "modified_time")
    private Date modifiedTime;

    public static final String COL_LOGIN_NAME = "login_name";

    public static final String COL_PASSWORD = "password";

    public static final String COL_USER_STATS = "user_stats";

    public static final String COL_MODIFIED_TIME = "modified_time";
}